Fix for #361, only saving mouse clicks for image changes