saves game when imageTarget is lost or at level end