adding resize_file