image_size.js used to be private to gallery. Now it is shared. 

crop_resize_rotate.js defines the cropResizeRotate() function that is at the heart of this patch.