clean up image resize stuff