remove unnecessary exception in images