add in a check and tests for #image_url_of_size