Fixed functions for sprite rotation