Drawing an image in a rect