Added "prev_image" to prevent clear on Undo.