generate some image with the right measure convert this image to the same image with the new measurement on the image