SDL: Update image code for SDL 2.0