renamed engine callbacks and implemented sprite scaling