Fixed a slight bug - was getting height and width for the resized image incorrectly.