remove debug messages and handle not modified status before remote images get fetched.