delete unrequired images