Refactor portfolio model

Added rubocop
fixed all rubocop syntax errors
re factored Portfolio Model  to have its own model for images