various image dir stuff