Update for 4.1

4.1 lets us pass the $size directly to wp_get_attachment_image_attributes which means the code can be a whole lot cleaner