Cropped functionality to resize method.
Example of the new functionality added.
Picture black and white.