added the scaling feature for all sprites