resize image proportionally. #39