Fixed image creation when cropping