add uuid validation when deleting pending images