Added width/height cropping to prevent junk pixels