fix error by deleting images