Code clean up. Pre-scaled image for betterperformance. Consolidated
scaling code in one spot.