Pr

You can pass the $size along with image_send_to_editor. With this information we can choose to not include unnecessary crops.

Also, by using wp_get_attachment_metadata we can check the sizes that actually exist for the image. with this, we can confidently loop through the crops forgoing a lot of the conditional checks around like #59.

[Screenshot of html output using built in WP sizes](https://cloudup.com/c2jwoZ91Fbd)