Creating an image of image in specific rect or by proportion