fixed deleteimage