Trap error when click View Image