Changed the way blocks register textures.
Removed unused/unneccesary code.