js code for zooming in and out: Sprite size issue remains