added SDL2 file loading code