removed unnecessary code from images#index