defined process_resize method for image method for image