use actual selection size for size of generated image