convert PNG to BMP, removed dependency of SDL_image