resize image proportionally. #39 with buildfile