Fixed get_image_link_with_custom_size(): when image could not be resized, wrong url was returned.