updated Image.centerOrigin() to handle scaled images