Migrate to stb_image for image loading and add y-flipping