reduce whitespace by cropping rendered image to appropriate dimensions