This class resizes a given image