implement image housekeeping