Fixed images crop option and wc_get_image_size() function

Reported in http://wordpress.org/support/topic/hard-crop

@mikejolley