make images main and delete images