Added memory clean up for sprites