some image file cleanups