Fix scaling method

Scaling was not being properly applied when the supplied image was of a
size smaller than the max width limit