Implemented scaling the big image. Fixed flickering problem in FF.