Image saving fix