Bug fixes for alpha handling and textures