image resize and file name sanitazition