I would like to set my small photo width as 100% so it fits in a grid no matter what height it has. Your module only accepts a number. I don't know my width and height, just a URL.
After a quick look in your code I'm not sure how to modify it to accept % width. Do you know if this would be easy to do, or did you make it a number on purpose?