added controller actions update/index for user images on rails end