trim query term from search bar
full flow to save resized picture