Added better memory management

Gave the different sprite classes a dispose method to improve memory
management.