making structure similar to that of SDL2_image