Fix image path saving