fixed an error with refactoring, view img activity