Changed to underlying contiguous memory. Made the sprite loading code independent of working directory.