Fix image preview in diary edit