refactoring request controller and fixing up resizing with paperclip