main: update_image: handle IMG_Load errors
main: free image surface before loading a new one