fixed performance issue with large sprite maps