change delete images in a new order , only delete if there are any content