This commit adds client side image resizing functionality.
@amboleos thanks. there's just one styling issue. can you check travis and fix it?