image loading, uv textures, ugly code