image resize bug fixed