added in some image to texture code