refactor portfolioImagesController