This class can be used to generate resized images.
It takes a given image and creates a copy with a new given size. The class can keep proportions of the original image upon setting a given width or height.
The class can also place a watermark image in one of the resized image corners or in the center.
The final image may also be rotated by a given angle. The background color of the image regions that may become empty is configurable.