file rename and image resize fix