[FIX] correctly handle invalid max_width/max_height passed to website._image