Fix canvas cropping