Use new image caching stuff everywhere (faster)
Use enums for stuff where appropriate. Removed vectorcompress function (not going to be needed where we're going..)