Allow resize of only one side (width or height), and the other side to be sized according to aspect ratio. Also, remove logging.