Added some code to scale image down to good size