Might be worth having an option for max thumbnail/medium height as well as width? Probably default it to NULL though..