Previous implementation was not robust as css style was able to change the image height. Also refactore the method to be more efficient.
Previous implementation was not robust as css style was able to change the image height. Also refactore the method to be more efficient.