Changed hook for register_image_sizes